package com.grts.dao;
import java.util.List;

import com.grts.pojo.MajorBean;


//学生
import com.grts.pojo.t_student;

public interface t_studentMapper {
    int deleteByPrimaryKey(Integer stuid);

    int insert(t_student record);

    int insertSelective(t_student record);

    t_student selectByPrimaryKey(Integer stuid);

    int updateByPrimaryKeySelective(t_student record);

    int updateByPrimaryKey(t_student record);
    
    List<t_student> queryAll();
    /**
     * 查询所有的学生
     * @return
     */
    List<t_student> selectAll();

	List<t_student> searchByDept(String deptName);

	
	List<MajorBean> queryByMId(Integer mid);


	List<t_student> searchDay(Integer day);

	List<t_student> searchLength(Integer length);

	List<t_student> searchStudentByMajor(Integer mid);
	
	List<MajorBean> queryByID(Integer mid);
	
	String queryNameByID(Integer mid);

}